package com.bwie.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.bwie.pojo.TbActive;
import com.bwie.pojo.TbWinRecord;
import com.bwie.service.TbWinRecordService;
import com.bwie.mapper.TbWinRecordMapper;
import com.bwie.utils.R;
import com.bwie.vo.PageInfoVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.validation.annotation.Validated;

/**
* @author 叶雨洁
* @description 针对表【tb_win_record(中奖记录表)】的数据库操作Service实现
* @createDate 2025-07-29 09:50:18
*/
@Service
public class TbWinRecordServiceImpl extends ServiceImpl<TbWinRecordMapper, TbWinRecord>
    implements TbWinRecordService{

    @Autowired
    TbWinRecordMapper tbWinRecordMapper;
    @Override
    public R getRecordList(PageInfoVo pageInfoVo) {

        Page<TbWinRecord> tbWinRecordPage = new Page<>(pageInfoVo.getPageNum(),pageInfoVo.getPageSize());
        QueryWrapper<TbWinRecord> recordQueryWrapper = new QueryWrapper<>();
        Page<TbWinRecord> tbWinRecordPage1 = tbWinRecordMapper.selectPage(tbWinRecordPage, recordQueryWrapper);
        return R.OK(tbWinRecordPage1);
    }
}




